package com.myteam.fugaocrm.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgStaff;
import com.myteam.fugaocrm.sqldb.mapper.FgStaffMapper;

@Service
public class StaffServiceImpl implements BaseService {

	@Resource protected FgStaffMapper fgStaffMapper;
	
	public List<FgStaff> all() {
		return fgStaffMapper.all();
	}
	
	public void deleteOne(Integer staffId) {
		fgStaffMapper.deleteOne(staffId);
	}
	
	public void insert(Map<String, Object> params) {
		fgStaffMapper.insert(params);
	}
	
	public void update(Map<String, Object> params) {
		fgStaffMapper.update(params);
	}
	
	public FgStaff selectStaffByStaffId(Integer staffId) {
		return fgStaffMapper.selectStaffByStaffId(staffId);
	}
	
}
